package com.bcxj.internalcommon.constant;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * ClassName: CommonStatusEnum
 * Package: com.bcxj.internalcommon.constant
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/9/15 21:50
 * @Version 1.0
 * @Since 1.0
 */
//@Data // 编制报错，data注解无法修饰枚举类
@AllArgsConstructor
public enum CommonStatusEnum {

    VERIFICATION_CODE_ERROR(1099, "验证码不正确"),
    VERIFICATION_CODE_OVERDUE(10992, "验证码过期"),
    SUCESS(1, "success"),
    FAIL(0, "fail"),
    // token相关错误 20 - 30
    TOKEN_ERROR(20, "token错误"),

    TOKEN_EXPIRED(21, "token已过期"),

    // 用户提示 1200 -1299
    USER_NOT_EXIST(100, "用户不存在"),

    // 车辆相关状态 150-1599
    DRIVER_CAR_BING_EXIST(1500, "司机和车辆绑定关系已经存在，请勿重复绑定"),
    DRIVER_BIND_EXIST(1501, "司机已经绑定车辆，请勿重复绑定"),
    CAR_BIND_EXIST(1502, "车辆已被绑定，请勿重复绑定"),
    DRIVER_CAR_BING_NOT_EXIST(1503, "司机和车辆绑定关系不存在"),
    DRIVER_NOT_EXIST(1504, "司机不存在"),
    DRIVER_PHONE_EXIST(1505, "手机号已经存在无法常见"),
    CITY_DRIVER_EMPTY(1506, "当前城市没有可以的司机"),
    AVAILABLE_DRIVER_EMPTY(1506, "可用的司机为空"),

    /**
     * 计价规则 1600 -1699
     */
    PRICE_RULE_EMPTY(1600, "计价规则不存在"),
    PRICE_RULE_EXISTS(1601, "计价规则已存在"),
    PRICE_RULE_NOT_EDIT(1602, "计价规则没有变化"),
    PRICE_RULE_CHANGED(1603, "计价规则有变化"),

    /**
     * 订单 1700 - 1799
     */
    ORDER_GOING_ON(1700, "有正在进行的订单"),
    DEVICE_IS_BLACK(1701, "设备超过最大下订单数"),
    CITY_SERVICE_NOT_SERVICE(1702, "当前城市不提供服务"),
    ORDER_CACEL_ERROR(1703, "订单取消失败");

    @Getter
    private Integer code;
    @Getter
    private String message;

}
